package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 根据渠号查询渠道信息请求对象
 * @date 2020-07-16 16:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "根据渠号查询渠道信息请求对象", description = "根据渠号查询渠道信息请求对象")
public class QueryChannelByCodeReq extends BaseReqObj {

    @NotEmpty(message = "渠道代码不能为空")
    @ApiModelProperty(value = "渠道代码", notes = "渠道代码", dataType = "String", required = true)
    @Size(max = 5, message = "长度为 5")
    private String channelCode;

}
